#include<cstdio>
#include<algorithm>
using namespace std;main(){int a[200],n,i,t,p;while(scanf("%d",&n)&&n){p=n;for(i=0;i<n*2;i++)scanf("%d",a+i);sort(a,a+n);sort(a+n,a+n*2);t=i=0;while(p--){t+=a[p]>a[p+n];i+=a[p]==a[p+n];}printf("%d vs %d\n",t*2+i,(n-t)*2-i);}}
